﻿using System;
using System.Collections.Generic;

// Token: 0x0200038A RID: 906
public class ParamaterURL
{
	// Token: 0x06001659 RID: 5721 RVA: 0x00095964 File Offset: 0x00093B64
	public ParamaterURL(string baseURL)
	{
		this.baseURL = baseURL;
	}

	// Token: 0x0600165A RID: 5722 RVA: 0x00095980 File Offset: 0x00093B80
	public void Add(string key, string val)
	{
		this.paramater.Add(key, val);
	}

	// Token: 0x0600165B RID: 5723 RVA: 0x00095990 File Offset: 0x00093B90
	public string Get()
	{
		string text = this.baseURL;
		if (this.paramater.Count > 0)
		{
			text += "?";
		}
		int num = 0;
		foreach (KeyValuePair<string, string> keyValuePair in this.paramater)
		{
			if (num != 0)
			{
				text += "&";
			}
			text = text + keyValuePair.Key + "=" + keyValuePair.Value;
			num++;
		}
		return text;
	}

	// Token: 0x04001A16 RID: 6678
	private string baseURL;

	// Token: 0x04001A17 RID: 6679
	private Dictionary<string, string> paramater = new Dictionary<string, string>();
}
